package com.zzjson.consumer;

import com.zzjson.api.HelloApi;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.consumer</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年07月05日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
public class BootStrap {
	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("dubbo.xml");
		HelloApi bean = classPathXmlApplicationContext.getBean(HelloApi.class);
		System.out.println(bean.sayHello("dd"));
	}
}